
/*
 *
 *  Copyright (C) 2012-2024
 *  All rights reserved, Designed By 杭州连线客信息技术有限公司
 *  注意：
 *  本软件为杭州连线客信息技术有限公司开发研制，未经购买不得使用
 *  购买后可获得全部源代码（禁止转卖、分享、上传到码云、github等开源平台）
 *  一经发现盗用、分享等行为，将追究法律责任，后果自负
 *
 */

package com.lxk.oms.postorder.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.lxk.oms.postorder.domain.OmsPostOrderItem;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;



/**
 * 订单售后明细视图对象 oms_post_order_item
 *
 * @author LXK-RY5
 * @date 2024-09-28
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = OmsPostOrderItem.class)
public class OmsPostOrderItemVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @ExcelProperty(value = "ID")
    private Long id;

    /**
     * 商户id
     */
    @ExcelProperty(value = "商户id")
    private Long merId;

    /**
     * 售后订单ID
     */
    @ExcelProperty(value = "售后订单ID")
    private Long postOrderId;

    /**
     * 订单主键id
     */
    @ExcelProperty(value = "订单主键id")
    private Long orderId;

    /**
     * 商品 SPU ID
     */
    @ExcelProperty(value = "商品 SPU ID")
    private Long spuId;

    /**
     * 商品 SPU 名称
     */
    @ExcelProperty(value = "商品 SPU 名称")
    private String spuName;

    /**
     * spu主图
     */
    @ExcelProperty(value = "spu主图")
    private String spuImage;

    /**
     * spu主图Url
     */
    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "spuImage")
    private String spuImageUrl;
    /**
     * sku图片
     */
    @ExcelProperty(value = "sku图片")
    private String skuImage;

    /**
     * sku图片Url
     */
    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "skuImage")
    private String skuImageUrl;
    /**
     * 商品 SKU ID
     */
    @ExcelProperty(value = "商品 SKU ID")
    private Long skuId;

    /**
     * SKU名称
     */
    @ExcelProperty(value = "SKU名称")
    private String skuName;

    /**
     * 用户ID
     */
    @ExcelProperty(value = "用户ID")
    private Long userId;

    /**
     * 退款金额
     */
    @ExcelProperty(value = "退款金额")
    private BigDecimal refundAmount;

    /**
     * 售后数量
     */
    @ExcelProperty(value = "售后数量")
    private Integer refundCount;

    /**
     * 实际退款金额
     */
    @ExcelProperty(value = "实际退款金额")
    private BigDecimal actRefundAmount;

    /**
     * 子订单ID
     */
    private Long orderItemId;


}
